home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / tclMotif-1.4 / doc / Makefile.userman < prev    next >
Encoding:
Makefile  |  1995-06-29  |  888 b   |  55 lines

  1. #
  2. # moat user manual Makefile.
  3. #
  4. # jDG, Fev 1, 1994.
  5. #
  6.  
  7. TARGET=userman
  8. FILES = \
  9.     Makefile.userman \
  10.     $(TARGET).ps \
  11.     $(TARGET).tex \
  12.     examples/Makefile \
  13.     examples/face examples/face_no \
  14.     examples/wd examples/XRessources \
  15.     examples/*.tcl
  16.  
  17. all: $(TARGET).dvi $(TARGET).ps
  18.  
  19. $(TARGET).dvi: \
  20.     $(TARGET).aux \
  21.     $(TARGET).idx \
  22.     $(TARGET).ind
  23.  
  24. print:    $(TARGET).ps
  25.     mpage -2 -P$(PRINTER) $(TARGET).ps
  26.  
  27. tar:
  28.     tar cvf - $(FILES) | compress | uuencode $(TARGET).tar.Z > $(TARGET).uu
  29.  
  30. clean:
  31.     -/bin/rm -f *.{aux,log,bak,idx,ind,dvi,bbl,blg,ilg,toc} core
  32.  
  33. #--------------------------------------------------------
  34. # Special stuff to handle latex compilations
  35. #
  36. .SUFFIXES:
  37. .SUFFIXES: .idx .ind .tex .dvi .aux .ps
  38.  
  39. .tex.aux:
  40.     latex $*
  41.  
  42. .tex.idx:
  43.     latex $*
  44.  
  45. .idx.ind:
  46.     @sed -e "s/{-/{/" -e "s/{\\%/{/" < $*.idx > .tmp.$$
  47.     @mv .tmp.$$ $*.idx
  48.     makeindex $*
  49.  
  50. .tex.dvi:
  51.     latex $*
  52.  
  53. .dvi.ps:
  54.     dvips $* -o
  55.